﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Fuyao.Data.SQLServer.DAO
{
   public class DAOHelper
    {

        //protected int getInsertedKey(SqlTransaction transaction, SqlCommand command)
        //{
        //    //string strSelectCommand = null;
        //    //int key = 0;

        //    //strSelectCommand = "SELECT @@IDENTITY AS ID";
        //    //command = db.GetSqlStringCommand(strSelectCommand);

        //    //using (IDataReader dr = db.ExecuteReader(sqlCommand, transaction))
        //    //{
        //    //    if (dr.Read())
        //    //    {
        //    //        key = Convert.ToInt32(dr["ID"]);
        //    //    }
        //    //    dr.Close();
        //    //}

        //    //return key;
        //} 

    }
}
